package com.xdjd.mobile.business.dao.mapper.member;

import com.xdjd.mobile.business.entity.model.member.MemberUserWalletPo;
import net.oschina.durcframework.easymybatis.dao.CrudDao;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

public interface MemberUserWalletPoDao extends CrudDao<MemberUserWalletPo> {
    @Update("update member_user_wallet set balance=balance-#{money} where balance>=#{money}")
    int reduceBalance(@Param("memberId") Long memberId, @Param("money") Long money);
}